package itea.bignews.dwr;

import itea.bignews.biz.FeedsManager;

/**
 * 
 * @version $Id: FeedsDwr.java 50 2009-09-07 13:39:17Z iteahere $
 * @author itea
 * @date 2009-8-18
 */
public class FeedsDwr extends Dwr {
	
	private FeedsManager feedsManager;
	
	public SResult listFeedNews(String url) {
		return new SResult(feedsManager.fetchNewsFromFeed(url));
	}
	
	public SResult listFeeds() {
		return new SResult(feedsManager.listFeeds());
	}

	public void setFeedsManager(FeedsManager feedsManager) {
		this.feedsManager = feedsManager;
	}
}
